libname = 'Distillate';

IncludePath = ['src']
LibsPath = []   
Libs = []

CommonFlags = ' -Wall -pedantic'

debug = ARGUMENTS.get('debug', 0)
libenv = Environment(CPPFLAGS = CommonFlags)
if int(debug):
	libenv.Append(CPPFLAGS = ' -g')

files = Split("""
src/DEmitter.cpp
src/DGame.cpp
src/DGlobals.cpp
src/DGroup.cpp
src/DObject.cpp
src/DPoint.cpp
src/DRect.cpp
src/DState.cpp
src/DUtils.cpp
""");

lib = libenv.SharedLibrary(target = libname, source = files, CPPPATH = IncludePath, LIBS = Libs, LIBPATH = LibsPath)
obj = libenv.Install("/usr/lib",lib)
libenv.Alias('install',"/usr/lib")
